package com.can.Mapper;


import com.can.Service.EsService;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.IOException;



@SpringBootTest
public class gametest {
    @Autowired
    EsService esService;
    @Autowired
    private GameStoreMapper gameStoreMapper;

    @Test
    public void test() throws IOException {
        System.out.println(gameStoreMapper);
        String serverUrl = "http://localhost:9200";
        RestClient restClient = RestClient
                .builder(HttpHost.create(serverUrl))
                .build();
    }

}
